/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.caresms.service.base;

import com.caresms.model.Keyword_Master;

import com.caresms.service.Category_MasterLocalService;
import com.caresms.service.Category_MasterService;
import com.caresms.service.City_MasterLocalService;
import com.caresms.service.City_MasterService;
import com.caresms.service.Country_MasterLocalService;
import com.caresms.service.Country_MasterService;
import com.caresms.service.Keyword_MasterLocalService;
import com.caresms.service.Keyword_MasterService;
import com.caresms.service.Keyword_Sms_RelationLocalService;
import com.caresms.service.Keyword_Sms_RelationService;
import com.caresms.service.Sms_MasterLocalService;
import com.caresms.service.Sms_MasterService;
import com.caresms.service.persistence.Category_MasterPersistence;
import com.caresms.service.persistence.City_MasterPersistence;
import com.caresms.service.persistence.Country_MasterPersistence;
import com.caresms.service.persistence.Keyword_MasterFinder;
import com.caresms.service.persistence.Keyword_MasterPersistence;
import com.caresms.service.persistence.Keyword_Sms_RelationPersistence;
import com.caresms.service.persistence.Sms_MasterPersistence;

import com.liferay.counter.service.CounterLocalService;

import com.liferay.portal.kernel.bean.BeanReference;
import com.liferay.portal.kernel.bean.IdentifiableBean;
import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.search.Indexable;
import com.liferay.portal.kernel.search.IndexableType;
import com.liferay.portal.kernel.util.OrderByComparator;
import com.liferay.portal.model.PersistedModel;
import com.liferay.portal.service.BaseLocalServiceImpl;
import com.liferay.portal.service.PersistedModelLocalServiceRegistryUtil;
import com.liferay.portal.service.ResourceLocalService;
import com.liferay.portal.service.ResourceService;
import com.liferay.portal.service.UserLocalService;
import com.liferay.portal.service.UserService;
import com.liferay.portal.service.persistence.ResourcePersistence;
import com.liferay.portal.service.persistence.UserPersistence;

import java.io.Serializable;

import java.util.List;

import javax.sql.DataSource;

/**
 * The base implementation of the keyword_ master local service.
 *
 * <p>
 * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link com.caresms.service.impl.Keyword_MasterLocalServiceImpl}.
 * </p>
 *
 * @author cc
 * @see com.caresms.service.impl.Keyword_MasterLocalServiceImpl
 * @see com.caresms.service.Keyword_MasterLocalServiceUtil
 * @generated
 */
public abstract class Keyword_MasterLocalServiceBaseImpl
	extends BaseLocalServiceImpl implements Keyword_MasterLocalService,
		IdentifiableBean {
	/*
	 * NOTE FOR DEVELOPERS:
	 *
	 * Never modify or reference this class directly. Always use {@link com.caresms.service.Keyword_MasterLocalServiceUtil} to access the keyword_ master local service.
	 */

	/**
	 * Adds the keyword_ master to the database. Also notifies the appropriate model listeners.
	 *
	 * @param keyword_Master the keyword_ master
	 * @return the keyword_ master that was added
	 * @throws SystemException if a system exception occurred
	 */
	@Indexable(type = IndexableType.REINDEX)
	public Keyword_Master addKeyword_Master(Keyword_Master keyword_Master)
		throws SystemException {
		keyword_Master.setNew(true);

		return keyword_MasterPersistence.update(keyword_Master, false);
	}

	/**
	 * Creates a new keyword_ master with the primary key. Does not add the keyword_ master to the database.
	 *
	 * @param KeyId the primary key for the new keyword_ master
	 * @return the new keyword_ master
	 */
	public Keyword_Master createKeyword_Master(long KeyId) {
		return keyword_MasterPersistence.create(KeyId);
	}

	/**
	 * Deletes the keyword_ master with the primary key from the database. Also notifies the appropriate model listeners.
	 *
	 * @param KeyId the primary key of the keyword_ master
	 * @return the keyword_ master that was removed
	 * @throws PortalException if a keyword_ master with the primary key could not be found
	 * @throws SystemException if a system exception occurred
	 */
	@Indexable(type = IndexableType.DELETE)
	public Keyword_Master deleteKeyword_Master(long KeyId)
		throws PortalException, SystemException {
		return keyword_MasterPersistence.remove(KeyId);
	}

	/**
	 * Deletes the keyword_ master from the database. Also notifies the appropriate model listeners.
	 *
	 * @param keyword_Master the keyword_ master
	 * @return the keyword_ master that was removed
	 * @throws SystemException if a system exception occurred
	 */
	@Indexable(type = IndexableType.DELETE)
	public Keyword_Master deleteKeyword_Master(Keyword_Master keyword_Master)
		throws SystemException {
		return keyword_MasterPersistence.remove(keyword_Master);
	}

	public DynamicQuery dynamicQuery() {
		Class<?> clazz = getClass();

		return DynamicQueryFactoryUtil.forClass(Keyword_Master.class,
			clazz.getClassLoader());
	}

	/**
	 * Performs a dynamic query on the database and returns the matching rows.
	 *
	 * @param dynamicQuery the dynamic query
	 * @return the matching rows
	 * @throws SystemException if a system exception occurred
	 */
	@SuppressWarnings("rawtypes")
	public List dynamicQuery(DynamicQuery dynamicQuery)
		throws SystemException {
		return keyword_MasterPersistence.findWithDynamicQuery(dynamicQuery);
	}

	/**
	 * Performs a dynamic query on the database and returns a range of the matching rows.
	 *
	 * <p>
	 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	 * </p>
	 *
	 * @param dynamicQuery the dynamic query
	 * @param start the lower bound of the range of model instances
	 * @param end the upper bound of the range of model instances (not inclusive)
	 * @return the range of matching rows
	 * @throws SystemException if a system exception occurred
	 */
	@SuppressWarnings("rawtypes")
	public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
		throws SystemException {
		return keyword_MasterPersistence.findWithDynamicQuery(dynamicQuery,
			start, end);
	}

	/**
	 * Performs a dynamic query on the database and returns an ordered range of the matching rows.
	 *
	 * <p>
	 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	 * </p>
	 *
	 * @param dynamicQuery the dynamic query
	 * @param start the lower bound of the range of model instances
	 * @param end the upper bound of the range of model instances (not inclusive)
	 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	 * @return the ordered range of matching rows
	 * @throws SystemException if a system exception occurred
	 */
	@SuppressWarnings("rawtypes")
	public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
		OrderByComparator orderByComparator) throws SystemException {
		return keyword_MasterPersistence.findWithDynamicQuery(dynamicQuery,
			start, end, orderByComparator);
	}

	/**
	 * Returns the number of rows that match the dynamic query.
	 *
	 * @param dynamicQuery the dynamic query
	 * @return the number of rows that match the dynamic query
	 * @throws SystemException if a system exception occurred
	 */
	public long dynamicQueryCount(DynamicQuery dynamicQuery)
		throws SystemException {
		return keyword_MasterPersistence.countWithDynamicQuery(dynamicQuery);
	}

	public Keyword_Master fetchKeyword_Master(long KeyId)
		throws SystemException {
		return keyword_MasterPersistence.fetchByPrimaryKey(KeyId);
	}

	/**
	 * Returns the keyword_ master with the primary key.
	 *
	 * @param KeyId the primary key of the keyword_ master
	 * @return the keyword_ master
	 * @throws PortalException if a keyword_ master with the primary key could not be found
	 * @throws SystemException if a system exception occurred
	 */
	public Keyword_Master getKeyword_Master(long KeyId)
		throws PortalException, SystemException {
		return keyword_MasterPersistence.findByPrimaryKey(KeyId);
	}

	public PersistedModel getPersistedModel(Serializable primaryKeyObj)
		throws PortalException, SystemException {
		return keyword_MasterPersistence.findByPrimaryKey(primaryKeyObj);
	}

	/**
	 * Returns a range of all the keyword_ masters.
	 *
	 * <p>
	 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	 * </p>
	 *
	 * @param start the lower bound of the range of keyword_ masters
	 * @param end the upper bound of the range of keyword_ masters (not inclusive)
	 * @return the range of keyword_ masters
	 * @throws SystemException if a system exception occurred
	 */
	public List<Keyword_Master> getKeyword_Masters(int start, int end)
		throws SystemException {
		return keyword_MasterPersistence.findAll(start, end);
	}

	/**
	 * Returns the number of keyword_ masters.
	 *
	 * @return the number of keyword_ masters
	 * @throws SystemException if a system exception occurred
	 */
	public int getKeyword_MastersCount() throws SystemException {
		return keyword_MasterPersistence.countAll();
	}

	/**
	 * Updates the keyword_ master in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
	 *
	 * @param keyword_Master the keyword_ master
	 * @return the keyword_ master that was updated
	 * @throws SystemException if a system exception occurred
	 */
	@Indexable(type = IndexableType.REINDEX)
	public Keyword_Master updateKeyword_Master(Keyword_Master keyword_Master)
		throws SystemException {
		return updateKeyword_Master(keyword_Master, true);
	}

	/**
	 * Updates the keyword_ master in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
	 *
	 * @param keyword_Master the keyword_ master
	 * @param merge whether to merge the keyword_ master with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
	 * @return the keyword_ master that was updated
	 * @throws SystemException if a system exception occurred
	 */
	@Indexable(type = IndexableType.REINDEX)
	public Keyword_Master updateKeyword_Master(Keyword_Master keyword_Master,
		boolean merge) throws SystemException {
		keyword_Master.setNew(false);

		return keyword_MasterPersistence.update(keyword_Master, merge);
	}

	/**
	 * Returns the category_ master local service.
	 *
	 * @return the category_ master local service
	 */
	public Category_MasterLocalService getCategory_MasterLocalService() {
		return category_MasterLocalService;
	}

	/**
	 * Sets the category_ master local service.
	 *
	 * @param category_MasterLocalService the category_ master local service
	 */
	public void setCategory_MasterLocalService(
		Category_MasterLocalService category_MasterLocalService) {
		this.category_MasterLocalService = category_MasterLocalService;
	}

	/**
	 * Returns the category_ master remote service.
	 *
	 * @return the category_ master remote service
	 */
	public Category_MasterService getCategory_MasterService() {
		return category_MasterService;
	}

	/**
	 * Sets the category_ master remote service.
	 *
	 * @param category_MasterService the category_ master remote service
	 */
	public void setCategory_MasterService(
		Category_MasterService category_MasterService) {
		this.category_MasterService = category_MasterService;
	}

	/**
	 * Returns the category_ master persistence.
	 *
	 * @return the category_ master persistence
	 */
	public Category_MasterPersistence getCategory_MasterPersistence() {
		return category_MasterPersistence;
	}

	/**
	 * Sets the category_ master persistence.
	 *
	 * @param category_MasterPersistence the category_ master persistence
	 */
	public void setCategory_MasterPersistence(
		Category_MasterPersistence category_MasterPersistence) {
		this.category_MasterPersistence = category_MasterPersistence;
	}

	/**
	 * Returns the city_ master local service.
	 *
	 * @return the city_ master local service
	 */
	public City_MasterLocalService getCity_MasterLocalService() {
		return city_MasterLocalService;
	}

	/**
	 * Sets the city_ master local service.
	 *
	 * @param city_MasterLocalService the city_ master local service
	 */
	public void setCity_MasterLocalService(
		City_MasterLocalService city_MasterLocalService) {
		this.city_MasterLocalService = city_MasterLocalService;
	}

	/**
	 * Returns the city_ master remote service.
	 *
	 * @return the city_ master remote service
	 */
	public City_MasterService getCity_MasterService() {
		return city_MasterService;
	}

	/**
	 * Sets the city_ master remote service.
	 *
	 * @param city_MasterService the city_ master remote service
	 */
	public void setCity_MasterService(City_MasterService city_MasterService) {
		this.city_MasterService = city_MasterService;
	}

	/**
	 * Returns the city_ master persistence.
	 *
	 * @return the city_ master persistence
	 */
	public City_MasterPersistence getCity_MasterPersistence() {
		return city_MasterPersistence;
	}

	/**
	 * Sets the city_ master persistence.
	 *
	 * @param city_MasterPersistence the city_ master persistence
	 */
	public void setCity_MasterPersistence(
		City_MasterPersistence city_MasterPersistence) {
		this.city_MasterPersistence = city_MasterPersistence;
	}

	/**
	 * Returns the country_ master local service.
	 *
	 * @return the country_ master local service
	 */
	public Country_MasterLocalService getCountry_MasterLocalService() {
		return country_MasterLocalService;
	}

	/**
	 * Sets the country_ master local service.
	 *
	 * @param country_MasterLocalService the country_ master local service
	 */
	public void setCountry_MasterLocalService(
		Country_MasterLocalService country_MasterLocalService) {
		this.country_MasterLocalService = country_MasterLocalService;
	}

	/**
	 * Returns the country_ master remote service.
	 *
	 * @return the country_ master remote service
	 */
	public Country_MasterService getCountry_MasterService() {
		return country_MasterService;
	}

	/**
	 * Sets the country_ master remote service.
	 *
	 * @param country_MasterService the country_ master remote service
	 */
	public void setCountry_MasterService(
		Country_MasterService country_MasterService) {
		this.country_MasterService = country_MasterService;
	}

	/**
	 * Returns the country_ master persistence.
	 *
	 * @return the country_ master persistence
	 */
	public Country_MasterPersistence getCountry_MasterPersistence() {
		return country_MasterPersistence;
	}

	/**
	 * Sets the country_ master persistence.
	 *
	 * @param country_MasterPersistence the country_ master persistence
	 */
	public void setCountry_MasterPersistence(
		Country_MasterPersistence country_MasterPersistence) {
		this.country_MasterPersistence = country_MasterPersistence;
	}

	/**
	 * Returns the keyword_ master local service.
	 *
	 * @return the keyword_ master local service
	 */
	public Keyword_MasterLocalService getKeyword_MasterLocalService() {
		return keyword_MasterLocalService;
	}

	/**
	 * Sets the keyword_ master local service.
	 *
	 * @param keyword_MasterLocalService the keyword_ master local service
	 */
	public void setKeyword_MasterLocalService(
		Keyword_MasterLocalService keyword_MasterLocalService) {
		this.keyword_MasterLocalService = keyword_MasterLocalService;
	}

	/**
	 * Returns the keyword_ master remote service.
	 *
	 * @return the keyword_ master remote service
	 */
	public Keyword_MasterService getKeyword_MasterService() {
		return keyword_MasterService;
	}

	/**
	 * Sets the keyword_ master remote service.
	 *
	 * @param keyword_MasterService the keyword_ master remote service
	 */
	public void setKeyword_MasterService(
		Keyword_MasterService keyword_MasterService) {
		this.keyword_MasterService = keyword_MasterService;
	}

	/**
	 * Returns the keyword_ master persistence.
	 *
	 * @return the keyword_ master persistence
	 */
	public Keyword_MasterPersistence getKeyword_MasterPersistence() {
		return keyword_MasterPersistence;
	}

	/**
	 * Sets the keyword_ master persistence.
	 *
	 * @param keyword_MasterPersistence the keyword_ master persistence
	 */
	public void setKeyword_MasterPersistence(
		Keyword_MasterPersistence keyword_MasterPersistence) {
		this.keyword_MasterPersistence = keyword_MasterPersistence;
	}

	/**
	 * Returns the keyword_ master finder.
	 *
	 * @return the keyword_ master finder
	 */
	public Keyword_MasterFinder getKeyword_MasterFinder() {
		return keyword_MasterFinder;
	}

	/**
	 * Sets the keyword_ master finder.
	 *
	 * @param keyword_MasterFinder the keyword_ master finder
	 */
	public void setKeyword_MasterFinder(
		Keyword_MasterFinder keyword_MasterFinder) {
		this.keyword_MasterFinder = keyword_MasterFinder;
	}

	/**
	 * Returns the keyword_ sms_ relation local service.
	 *
	 * @return the keyword_ sms_ relation local service
	 */
	public Keyword_Sms_RelationLocalService getKeyword_Sms_RelationLocalService() {
		return keyword_Sms_RelationLocalService;
	}

	/**
	 * Sets the keyword_ sms_ relation local service.
	 *
	 * @param keyword_Sms_RelationLocalService the keyword_ sms_ relation local service
	 */
	public void setKeyword_Sms_RelationLocalService(
		Keyword_Sms_RelationLocalService keyword_Sms_RelationLocalService) {
		this.keyword_Sms_RelationLocalService = keyword_Sms_RelationLocalService;
	}

	/**
	 * Returns the keyword_ sms_ relation remote service.
	 *
	 * @return the keyword_ sms_ relation remote service
	 */
	public Keyword_Sms_RelationService getKeyword_Sms_RelationService() {
		return keyword_Sms_RelationService;
	}

	/**
	 * Sets the keyword_ sms_ relation remote service.
	 *
	 * @param keyword_Sms_RelationService the keyword_ sms_ relation remote service
	 */
	public void setKeyword_Sms_RelationService(
		Keyword_Sms_RelationService keyword_Sms_RelationService) {
		this.keyword_Sms_RelationService = keyword_Sms_RelationService;
	}

	/**
	 * Returns the keyword_ sms_ relation persistence.
	 *
	 * @return the keyword_ sms_ relation persistence
	 */
	public Keyword_Sms_RelationPersistence getKeyword_Sms_RelationPersistence() {
		return keyword_Sms_RelationPersistence;
	}

	/**
	 * Sets the keyword_ sms_ relation persistence.
	 *
	 * @param keyword_Sms_RelationPersistence the keyword_ sms_ relation persistence
	 */
	public void setKeyword_Sms_RelationPersistence(
		Keyword_Sms_RelationPersistence keyword_Sms_RelationPersistence) {
		this.keyword_Sms_RelationPersistence = keyword_Sms_RelationPersistence;
	}

	/**
	 * Returns the sms_ master local service.
	 *
	 * @return the sms_ master local service
	 */
	public Sms_MasterLocalService getSms_MasterLocalService() {
		return sms_MasterLocalService;
	}

	/**
	 * Sets the sms_ master local service.
	 *
	 * @param sms_MasterLocalService the sms_ master local service
	 */
	public void setSms_MasterLocalService(
		Sms_MasterLocalService sms_MasterLocalService) {
		this.sms_MasterLocalService = sms_MasterLocalService;
	}

	/**
	 * Returns the sms_ master remote service.
	 *
	 * @return the sms_ master remote service
	 */
	public Sms_MasterService getSms_MasterService() {
		return sms_MasterService;
	}

	/**
	 * Sets the sms_ master remote service.
	 *
	 * @param sms_MasterService the sms_ master remote service
	 */
	public void setSms_MasterService(Sms_MasterService sms_MasterService) {
		this.sms_MasterService = sms_MasterService;
	}

	/**
	 * Returns the sms_ master persistence.
	 *
	 * @return the sms_ master persistence
	 */
	public Sms_MasterPersistence getSms_MasterPersistence() {
		return sms_MasterPersistence;
	}

	/**
	 * Sets the sms_ master persistence.
	 *
	 * @param sms_MasterPersistence the sms_ master persistence
	 */
	public void setSms_MasterPersistence(
		Sms_MasterPersistence sms_MasterPersistence) {
		this.sms_MasterPersistence = sms_MasterPersistence;
	}

	/**
	 * Returns the counter local service.
	 *
	 * @return the counter local service
	 */
	public CounterLocalService getCounterLocalService() {
		return counterLocalService;
	}

	/**
	 * Sets the counter local service.
	 *
	 * @param counterLocalService the counter local service
	 */
	public void setCounterLocalService(CounterLocalService counterLocalService) {
		this.counterLocalService = counterLocalService;
	}

	/**
	 * Returns the resource local service.
	 *
	 * @return the resource local service
	 */
	public ResourceLocalService getResourceLocalService() {
		return resourceLocalService;
	}

	/**
	 * Sets the resource local service.
	 *
	 * @param resourceLocalService the resource local service
	 */
	public void setResourceLocalService(
		ResourceLocalService resourceLocalService) {
		this.resourceLocalService = resourceLocalService;
	}

	/**
	 * Returns the resource remote service.
	 *
	 * @return the resource remote service
	 */
	public ResourceService getResourceService() {
		return resourceService;
	}

	/**
	 * Sets the resource remote service.
	 *
	 * @param resourceService the resource remote service
	 */
	public void setResourceService(ResourceService resourceService) {
		this.resourceService = resourceService;
	}

	/**
	 * Returns the resource persistence.
	 *
	 * @return the resource persistence
	 */
	public ResourcePersistence getResourcePersistence() {
		return resourcePersistence;
	}

	/**
	 * Sets the resource persistence.
	 *
	 * @param resourcePersistence the resource persistence
	 */
	public void setResourcePersistence(ResourcePersistence resourcePersistence) {
		this.resourcePersistence = resourcePersistence;
	}

	/**
	 * Returns the user local service.
	 *
	 * @return the user local service
	 */
	public UserLocalService getUserLocalService() {
		return userLocalService;
	}

	/**
	 * Sets the user local service.
	 *
	 * @param userLocalService the user local service
	 */
	public void setUserLocalService(UserLocalService userLocalService) {
		this.userLocalService = userLocalService;
	}

	/**
	 * Returns the user remote service.
	 *
	 * @return the user remote service
	 */
	public UserService getUserService() {
		return userService;
	}

	/**
	 * Sets the user remote service.
	 *
	 * @param userService the user remote service
	 */
	public void setUserService(UserService userService) {
		this.userService = userService;
	}

	/**
	 * Returns the user persistence.
	 *
	 * @return the user persistence
	 */
	public UserPersistence getUserPersistence() {
		return userPersistence;
	}

	/**
	 * Sets the user persistence.
	 *
	 * @param userPersistence the user persistence
	 */
	public void setUserPersistence(UserPersistence userPersistence) {
		this.userPersistence = userPersistence;
	}

	public void afterPropertiesSet() {
		PersistedModelLocalServiceRegistryUtil.register("com.caresms.model.Keyword_Master",
			keyword_MasterLocalService);
	}

	public void destroy() {
		PersistedModelLocalServiceRegistryUtil.unregister(
			"com.caresms.model.Keyword_Master");
	}

	/**
	 * Returns the Spring bean ID for this bean.
	 *
	 * @return the Spring bean ID for this bean
	 */
	public String getBeanIdentifier() {
		return _beanIdentifier;
	}

	/**
	 * Sets the Spring bean ID for this bean.
	 *
	 * @param beanIdentifier the Spring bean ID for this bean
	 */
	public void setBeanIdentifier(String beanIdentifier) {
		_beanIdentifier = beanIdentifier;
	}

	public Object invokeMethod(String name, String[] parameterTypes,
		Object[] arguments) throws Throwable {
		return _clpInvoker.invokeMethod(name, parameterTypes, arguments);
	}

	protected Class<?> getModelClass() {
		return Keyword_Master.class;
	}

	protected String getModelClassName() {
		return Keyword_Master.class.getName();
	}

	/**
	 * Performs an SQL query.
	 *
	 * @param sql the sql query
	 */
	protected void runSQL(String sql) throws SystemException {
		try {
			DataSource dataSource = keyword_MasterPersistence.getDataSource();

			SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
					sql, new int[0]);

			sqlUpdate.update();
		}
		catch (Exception e) {
			throw new SystemException(e);
		}
	}

	@BeanReference(type = Category_MasterLocalService.class)
	protected Category_MasterLocalService category_MasterLocalService;
	@BeanReference(type = Category_MasterService.class)
	protected Category_MasterService category_MasterService;
	@BeanReference(type = Category_MasterPersistence.class)
	protected Category_MasterPersistence category_MasterPersistence;
	@BeanReference(type = City_MasterLocalService.class)
	protected City_MasterLocalService city_MasterLocalService;
	@BeanReference(type = City_MasterService.class)
	protected City_MasterService city_MasterService;
	@BeanReference(type = City_MasterPersistence.class)
	protected City_MasterPersistence city_MasterPersistence;
	@BeanReference(type = Country_MasterLocalService.class)
	protected Country_MasterLocalService country_MasterLocalService;
	@BeanReference(type = Country_MasterService.class)
	protected Country_MasterService country_MasterService;
	@BeanReference(type = Country_MasterPersistence.class)
	protected Country_MasterPersistence country_MasterPersistence;
	@BeanReference(type = Keyword_MasterLocalService.class)
	protected Keyword_MasterLocalService keyword_MasterLocalService;
	@BeanReference(type = Keyword_MasterService.class)
	protected Keyword_MasterService keyword_MasterService;
	@BeanReference(type = Keyword_MasterPersistence.class)
	protected Keyword_MasterPersistence keyword_MasterPersistence;
	@BeanReference(type = Keyword_MasterFinder.class)
	protected Keyword_MasterFinder keyword_MasterFinder;
	@BeanReference(type = Keyword_Sms_RelationLocalService.class)
	protected Keyword_Sms_RelationLocalService keyword_Sms_RelationLocalService;
	@BeanReference(type = Keyword_Sms_RelationService.class)
	protected Keyword_Sms_RelationService keyword_Sms_RelationService;
	@BeanReference(type = Keyword_Sms_RelationPersistence.class)
	protected Keyword_Sms_RelationPersistence keyword_Sms_RelationPersistence;
	@BeanReference(type = Sms_MasterLocalService.class)
	protected Sms_MasterLocalService sms_MasterLocalService;
	@BeanReference(type = Sms_MasterService.class)
	protected Sms_MasterService sms_MasterService;
	@BeanReference(type = Sms_MasterPersistence.class)
	protected Sms_MasterPersistence sms_MasterPersistence;
	@BeanReference(type = CounterLocalService.class)
	protected CounterLocalService counterLocalService;
	@BeanReference(type = ResourceLocalService.class)
	protected ResourceLocalService resourceLocalService;
	@BeanReference(type = ResourceService.class)
	protected ResourceService resourceService;
	@BeanReference(type = ResourcePersistence.class)
	protected ResourcePersistence resourcePersistence;
	@BeanReference(type = UserLocalService.class)
	protected UserLocalService userLocalService;
	@BeanReference(type = UserService.class)
	protected UserService userService;
	@BeanReference(type = UserPersistence.class)
	protected UserPersistence userPersistence;
	private String _beanIdentifier;
	private Keyword_MasterLocalServiceClpInvoker _clpInvoker = new Keyword_MasterLocalServiceClpInvoker();
}